import numpy as np

usr_input = input("").split(" ")
n = int(usr_input[0])
m = int(usr_input[1])

array = np.zeros((1, n), float)
array[0][m - 1] = 1
print(array)
